package com.programs.waw;

import java.io.Serializable;
import java.text.DecimalFormat;

public class AliceData implements Serializable, Comparable<AliceData> {

	private static final long serialVersionUID = 1L;

	private String _ssid;
	private String _sn;
	private double _q;
	private double _k;
	private String _mac;
	private String _wpa = "";

	public AliceData() {
	}

	public String getSsid() {
		return _ssid;
	}

	public void setSsid(String ssid) {
		_ssid = ssid;
	}

	public String getSn() {
		return _sn;
	}

	public void setSn(String sn) {
		_sn = sn;
	}

	public double getQ() {
		return _q;
	}

	public void setQ(double q) {
		_q = q;
	}

	public double getK() {
		return _k;
	}

	public void setK(double k) {
		_k = k;
	}

	public String getMac() {
		return _mac;
	}

	public void setMac(String mac) {
		_mac = mac.toUpperCase();
	}

	public String getWpa() {
		return _wpa;
	}

	public void setWpa(String wpa) {
		_wpa = wpa;
	}

	@Override
	public String toString() {
		DecimalFormat df = new DecimalFormat("0");
		return (_ssid + "\t" + _sn + "\t" + df.format(_q) + "\t"
				+ df.format(_k) + "\t" + _mac + "\t" + _wpa);
	}

	@Override
	public int compareTo(AliceData another) {
		return this.getSsid().compareTo(another.getSsid());
	}

}